
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of DATEPAGE.CGI</TITLE>
</HEAD><BODY>
<H1>DATEPAGE.CGI</H1>
Section: User Commands  (1)<BR>Updated: Version 4.3.13:  7 Jan 2014<BR><A HREF="#index">Index</A>
<A HREF="../index.html">Return to Main Contents</A><HR>

<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>

datepage.cgi - Xymon CGI script to view pre-built reports by date
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>

<B>datepage.cgi?type={day,week,month} --url=URLPREFIX [options]</B>

<P>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>

<B>datepage.cgi</B> is invoked as a CGI script via the datepage.sh CGI wrapper.
<P>
datepage.cgi is passed a QUERY_STRING environment variable with the
type of time-selection that is desired: Either &quot;day&quot;, &quot;week&quot; or &quot;month&quot;
can be requested. It will then generate a web form with appropriate
day/week/month selection boxes, and based on the users' selection a
resulting url is built from the URLPREFIX and the time selection.
The browser is then redirected to this URL.
<P>
The URL is constructed from the URLPREFIX, the type-parameter, the 
value of the &quot;pagepath&quot; or &quot;host&quot; cookie, and the users' selection 
as follows:
<P>
<DL COMPACT>
<DT>type=day<DD>
The final URL is <B>URLPREFIX/daily/YEAR/MONTH/DAY/PAGEPATH</B>.
<P>
<DT>type=week<DD>
The final URL is <B>URLPREFIX/weekly/YEAR/WEEK/PAGEPATH</B>.
<P>
<DT>type=month<DD>
The final URL is <B>URLPREFIX/monthly/YEAR/MONTH/PAGEPATH</B>.
<P>
YEAR is the full year (4 digits, including century). MONTH is the
two-digit number of the month (01..12). DAY is the number of the 
day in the month (01..31). WEEK is the ISO 8601:1988 week-number 
(01..53). PAGEPATH is the current value of the &quot;pagepath&quot; cookie
if set; if it is not set but the &quot;host&quot; cookie is set, then this
host is looked up in the hosts.cfg file and the page where this host
is found is used for PAGEPATH. These two cookies are set by the 
default web-header templates supplied with Xymon.
<P>
</DL>
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>

<DL COMPACT>
<DT>--url=URLPREFIX<DD>
This specifies the initial part of the final URL. This option is required.
<P>
<DT>--hffile=FILENAME<DD>
Specifies the template files (from $XYMONHOME/web/) to use. The default is 
&quot;--hffile=report&quot;.
<P>
<DT>--color=COLOR<DD>
Sets the background color of the generated webpage. The default is blue.
<P>
<DT>--env=FILENAME<DD>
Loads the environment defined in FILENAME before executing the CGI script.
<P>
<DT>--debug<DD>
Enables debugging output.
<P>
<DT>$XYMONHOME/web/report_form_daily<DD>
HTML form template for the date selection form when type=daily.
<P>
<DT>$XYMONHOME/web/report_form_weekly<DD>
HTML form template for the date selection form when type=weekly.
<P>
<DT>$XYMONHOME/web/report_form_monthly<DD>
HTML form template for the date selection form when type=monthly.
<P>
<DT>$XYMONHOME/web/report_header<DD>
HTML header file for the generated web page
<P>
<DT>$XYMONHOME/web/report_footer<DD>
HTML footer file for the generated web page
<P>
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>ENVIRONMENT VARIABLES</H2>

<DL COMPACT>
<DT>XYMONHOME<DD>
Used to locate the template files for the generated web pages.
<P>
<DT>QUERY_STRING<DD>
Contains the parameters for the CGI script.
<P>
</DL>
<A NAME="lbAG">&nbsp;</A>
<H2>SEE ALSO</H2>

<A HREF="../man1/xymongen.1.html">xymongen</A>(1), <A HREF="../man5/hosts.cfg.5.html">hosts.cfg</A>(5), <A HREF="../man5/xymonserver.cfg.5.html">xymonserver.cfg</A>(5)
<P>
<P>

<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT><A HREF="#lbAB">NAME</A><DD>
<DT><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT><A HREF="#lbAE">OPTIONS</A><DD>
<DT><A HREF="#lbAF">ENVIRONMENT VARIABLES</A><DD>
<DT><A HREF="#lbAG">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 09:25:35 GMT, January 07, 2014
</BODY>
</HTML>
